Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove units from the ref files #490

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

WilliamJamieson
Copy link
Collaborator

@WilliamJamieson WilliamJamieson commented Oct 18, 2024

Resolves RAD-192

Closes #489

This PR removes the units from the reference files.

Tasks

  • Update or add relevant rad tests.
  • Update relevant docstrings and / or docs/ page.
  • Does this PR change any schema files?
    • Schema changes were discussed at RAD Review Board meeting.
  • Does this PR change any API used downstream? (If not, label with no-changelog-entry-needed.)
News fragment change types:
  • changes/<PR#>.feature.rst: new feature
  • changes/<PR#>.bugfix.rst: fixes an issue
  • changes/<PR#>.doc.rst: documentation change
  • changes/<PR#>.removal.rst: deprecation or removal of public API
  • changes/<PR#>.misc.rst: infrastructure or miscellaneous change

Copy link

codecov bot commented Oct 18, 2024

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 96.28%. Comparing base (d96b8da) to head (2f4033c).
Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
tests/test_schemas.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #490      +/-   ##
==========================================
- Coverage   96.59%   96.28%   -0.32%     
==========================================
  Files           4        4              
  Lines         235      242       +7     
==========================================
+ Hits          227      233       +6     
- Misses          8        9       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@schlafly
Copy link
Collaborator

Thanks. This looks good. We're currently storing the units as an optional, unused bit of the schema like this:
https://github.com/spacetelescope/rad/blob/main/src/rad/resources/schemas/wfi_image-1.0.0.yaml#L105
so at least the information is in principle present in a machine readable way. Would you mind adding those bits?

I think that doesn't actually affect RTB's ability to build the files, though, so we could advertise these branches to RTB and they could develop the needed files?

@WilliamJamieson WilliamJamieson force-pushed the feature/remove_ref_units branch 2 times, most recently from d6b69b0 to fe6fc3d Compare October 18, 2024 17:56
@WilliamJamieson WilliamJamieson force-pushed the feature/remove_ref_units branch from a9a3080 to 871d5d3 Compare November 25, 2024 19:43
@PaulHuwe
Copy link
Collaborator

PaulHuwe commented Dec 6, 2024

This will also address #445 when implemented

@WilliamJamieson WilliamJamieson force-pushed the feature/remove_ref_units branch from 871d5d3 to d294b26 Compare January 13, 2025 16:42
@WilliamJamieson WilliamJamieson marked this pull request as ready for review January 13, 2025 16:43
@WilliamJamieson WilliamJamieson requested a review from a team as a code owner January 13, 2025 16:43
@WilliamJamieson WilliamJamieson force-pushed the feature/remove_ref_units branch from d294b26 to 2338fa6 Compare January 13, 2025 16:49
@WilliamJamieson
Copy link
Collaborator Author

RDM failure will be fixed by spacetelescope/roman_datamodels#408.

Copy link
Collaborator

@PaulHuwe PaulHuwe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The V2/V3 coordinates output units after the model is applied.
tag: tag:stsci.edu:asdf/unit/unit-1.*
enum: ["arcsec"]
required: [output_units, input_units]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PaulHuwe Was there a decision to remove input_units`` and output_units`? I think especially the output units can be important.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are right that these two should remain.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dark Ref File Metadata
4 participants